/**
 * 
 */
package com.sx.rbac.biz.impl;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.sx.feesunit.exception.SXException;
import com.sx.rbac.biz.ISysUserBiz;
import com.sx.rbac.dao.ISysUserDao;
import com.sx.rbac.entity.SysUserEntity;

/**
 * @author Administrator
 *
 */
public class SysUserBiz implements ISysUserBiz {
	private ISysUserDao sysuserdao;
	private Log log = LogFactory.getLog(this.getClass());
	/* (non-Javadoc)
	 * @see com.sx.rbac.biz.ISysUserBiz#findSysUserOnlyOne(com.sx.rbac.entity.SysUserEntity)
	 */
	public SysUserEntity findSysUserOnlyOne(SysUserEntity sysuser) throws SXException{
		// TODO Auto-generated method stub
		SysUserEntity user = null;
		try {
			user =  sysuserdao.findSysUserOnlyOne(sysuser);
		} catch (Exception e) {
			log.error("获取用户信息",e);
			throw new SXException(e);
		}
		return user;
	}
	/**
	 * @return the sysuserdao
	 */
	public ISysUserDao getSysuserdao() {
		return sysuserdao;
	}
	/**
	 * @param sysuserdao the sysuserdao to set
	 */
	public void setSysuserdao(ISysUserDao sysuserdao) {
		this.sysuserdao = sysuserdao;
	}
	
}
